package com.tl.libmanager;

import android.app.Activity;
import android.content.Context;
import android.webkit.WebView;

/**
 * @author JongSung
 * @Description CommonLibrary反向调用app Library
 * @date 2017/6/2 0002.
 */
public interface MainAppInterface {
    void tokenInvalid();

    void login(Context context);

    /**
     * 检测是否已经登录，未登录直接跳转到登录
     *
     * @param context
     * @return
     */
    boolean checkLogin(Context context);

    void startApp(Context context);

    void forceLogin(Context context, String loginName);

    void forceLogin(Context context);

    void tokenInvalid(final boolean needFinish);

    /**
     * 将activity推入activity栈中
     *
     * @param activity
     */
    void onActivityPush(Activity activity);

    /**
     * 将activity推出activity栈
     *
     * @param activity
     */
    void onActivityPop(Activity activity);

    void onActivityStart(Activity activity);

    void onActivityStop(Activity activity);

    boolean debuggable();
}
